package top.kaoshanji.p2ch23b;

import java.lang.reflect.Method;
import java.util.Arrays;

/**
 * 代码清单-p2ch23b-587页a：异常切面类
 * author kaoshanji
 * ^_^
 * create time 2025/3/3 15:53
 */
@Aspect({ServiceB1.class})
public class ExceptionAspect {

    public static void exception(Object object, Method method, Object[] args, Throwable e) {
        System.err.println("exception when calling: " + method.getName()
                + "," + Arrays.toString(args));
    }



}
